package com.boot.schedule;

import org.springframework.context.ApplicationEvent;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @date 2021/1/29 21:58
 **/

public class TaskEvent extends ApplicationEvent {

    public static final int START = 0;
    public static final int STOP = 1;

    private final int signal;

    public TaskEvent(AbstractScheduleTask task, int signal) {
        super(task);
        this.signal = signal;
    }

    public int getSignal() {
        return signal;
    }
}
